/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.account.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medusa.gruul.common.data.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 会员信息表
 *
 * @author zhaokw
 * @since 2020-05-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_member_info")
@ApiModel(value = "MemberInfo对象", description = "会员信息表")
public class MemberInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id ")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员卡编号
     */
    @ApiModelProperty(value = "会员卡编号")
    @TableField("member_number")
    private String memberNumber;

    /**
     * 会员卡二维码url
     */
    @ApiModelProperty(value = "会员卡二维码url")
    @TableField("member_qrcode")
    private String memberQrcode;

    /**
     * 会员卡注册状态 0未注册,1已注册 2-会员到期
     */
    @ApiModelProperty(value = "会员卡注册状态 0未注册,1已注册  2-会员到期")
    @TableField("state")
    private Integer state;

    /**
     * 会员卡Id
     */
    @ApiModelProperty(value = "会员卡Id")
    @TableField("member_card_info_id")
    private Long memberCardInfoId;

    /**
     * 会员注册时间
     */
    @ApiModelProperty(value = "会员注册时间")
    @TableField("member_register_time")
    private LocalDateTime memberRegisterTime;

    /**
     * 会员到期时间
     */
    @ApiModelProperty(value = "会员到期时间")
    @TableField("member_expire_time")
    private LocalDateTime memberExpireTime;

    /**
     * 会员注册方式 0订单购买,1-积分兑换,2-后台设置
     */
    @ApiModelProperty(value = "会员注册方式 0订单购买,1-积分兑换,2-后台设置")
    @TableField("member_register_type")
    private Integer memberRegisterType;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    /**
     * 注册表单填写信息，逗号分隔，按照该租户下的注册表单顺序排序
     */
    @ApiModelProperty(value = "注册表单填写信息")
    @TableField("register_data")
    private String registerData;


}
